<?php
class GearmanUtility
{
    public static function doBackground($jobId, array $params = null)
    {
        Yii::app()->gearman->client()->doBackground($jobId, serialize($params));
    }
}